import request from '@/utils/request'

/**
 * @param {政策法规-左侧树状查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/getPoliciesRegulationsList
 * @method {post}
 * 
 */
export function getPoliciesRegulationsList() {
  return request({
    url: '/zy-api/api/policiesRegulations/getPoliciesRegulationsList',
    method: 'post',
    data: {}
  })
};

/**
 * @param {根据ID查询-政策法规-左侧} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/getPoliciesRegulationsId
 * @method {post}
 * @params {string} id  编码
 * 
 */
export function getPoliciesRegulationsId(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/getPoliciesRegulationsId',
    method: 'post',
    data: data
  })
};

/**
 * @param {政策法规-左侧-新增} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/addPoliciesRegulations
 * @method {post}
 * @params {string} id      编码
 * @params {string} levelid  父id(上级节点)
 * @params {string} pliciesnm  名称
 * @params {string} route  资料路径
 * @params {string} nt  备注内容
 * 
 */
export function addPoliciesRegulations(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/addPoliciesRegulations',
    method: 'post',
    data: data
  })
};

/**
 * @param {政策法规-左侧-修改} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/updPoliciesRegulations
 * @method {post}
 * @params {string} id      编码
 * @params {string} levelid  父id(上级节点)
 * @params {string} pliciesnm  名称
 * @params {string} route  资料路径
 * @params {string} nt  备注内容
 * 
 */
export function updPoliciesRegulations(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/updPoliciesRegulations',
    method: 'post',
    data: data
  })
};

/**
 * @param {政策法规-右侧查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/getPoliciesRightList
 * @method {post}
 * @params {string} id      左侧树菜单id
 * @params {int} pageIndex  当前页
 * @params {int} pageSize  当前页条数
 * 
 */
export function getPoliciesRightList(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/getPoliciesRightList',
    method: 'post',
    data: data
  })
};

/**
 * @param {根据ID查询-政策法规-右侧} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/getWaterManagementRightId
 * @method {post}
 * @params {string} id      编码
 * 
 */
export function getWaterManagementRightId(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/getWaterManagementRightId',
    method: 'post',
    data: data
  })
};

/**
 * @param {政策法规-右侧-新增} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/addWaterManagementRight
 * @method {post}
 * @params {string} id      编码
 * @params {string} levelid  父id(上级节点)
 * @params {string} pliciesnm  名称
 * @params {string} route  资料路径
 * @params {string} nt  备注内容
 * 
 * 
 */
export function addWaterManagementRight(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/addWaterManagementRight',
    method: 'post',
    data: data
  })
};

/**
 * @param {政策法规-右侧-修改} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/updWaterManagementRight
 * @method {post}
 * @params {string} id      编码
 * @params {string} levelid  父id(上级节点)
 * @params {string} pliciesnm  名称
 * @params {string} route  资料路径
 * @params {string} nt  备注内容
 * 
 * 
 */
export function updWaterManagementRight(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/updWaterManagementRight',
    method: 'post',
    data: data
  })
};

/**
 * @param {政策法规-右侧-下载} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/policiesRegulations/dowWaterManagementRight
 * @method {post}
 * @params {string} id      编码
 * 
 * 
 */
export function dowWaterManagementRight(data) {
  return request({
    url: '/zy-api/api/policiesRegulations/dowWaterManagementRight',
    method: 'post',
    data: data
  })
};
